package com.guigu.service.impl;

import com.guigu.entity.PackageBean;
import com.guigu.mapper.PackageMapper;
import com.guigu.service.PackageService;
import com.guigu.vo.CheckgroupVO;
import com.guigu.vo.CheckitemVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional
public class PackageServiceImpl implements PackageService {

    @Autowired
    private PackageMapper packageMapper;
    @Override
    public List<PackageBean> selectPackage() {
        return this.packageMapper.selectPackage();
    }

    @Override
    public List<CheckitemVO> selectCheckitemVO() {
        return this.packageMapper.selectCheckitemVO();
    }

    @Override
    public List<CheckgroupVO> selectCheckgroupVO() {
        return this.packageMapper.selectCheckgroupVO();
    }

    @Override
    public void addPackage(PackageBean packageBean) {
        this.packageMapper.addPackage(packageBean);
    }

    @Override
    public void deletesetmealByid(PackageBean packageBean) {
        this.packageMapper.deletesetmealByid(packageBean);
    }

    @Override
    public void addcheckgroup(int tcud, int xmzid) {
        this.packageMapper.addcheckgroup(tcud,xmzid);
    }

    @Override
    public void addcheckitem(int xmzid, int xmid) {

    }

    @Override
    public List<CheckitemVO> selectCheckitemVOByid(int id) {
        return this.packageMapper.selectCheckitemVOByid(id);
    }


}
